package com.bsoft.gol.hcs.enumcase;


import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public enum PlatformEnum {
    is_COVID19("is_COVID19","013003"),//是否获取本院核酸检测结果是_1  否_0
    bodytemperature("bodytemperature","013004"),//通行证体温上限
    test_prd_vald("test_prd_vald","013005"),//核酸检测报告有效期
    hosp_visit_lim("hosp_visit_lim","013006"),//探视证有效期
    visit_numb("visit_numb","013007"),//探视人数上限
    comp_num("comp_num","013008"),//陪护人数上限
    comp_out_time("comp_out_time","013009"),//外出超时时间
    Sign_flag("Sign_flag","012703"),//是否开通电子签名   是_1  否_0
    Sign_auth_flag("Sign_auth_flag","012705"),//是否在签名时启用意愿验证   是_1  否_0
    Sign_factor("Sign_factor","012706"),
    Format_Interface_exchange("Format_Interface_exchange","013701"),//服务对接方式  0:json    1:xml
    electronic_prescription("electronic_prescription","013705"),//电子处方服务对接方式  0:json    1:xml
    extension("extension","013702"),//是否开通外延处方(0:未开通 1:开通),默认:0
    auto_review("auto_review", "013703"),//是否开启自动审方(0:未开启 1:开启),默认:0
    route_type_flag("route_type_flag", "012210");//电子处方查询线上线下(0:线上,1:线下),默认:0
    private String HOL;
    private String GOL;

    public static final String getHOL(String code){
        for (PlatformEnum type : PlatformEnum.values()){
            if (type.getHOL().equalsIgnoreCase(code.trim())){
                return type.GOL;
            }
        }
        return null;
    }

    public String getHOL() {
        return HOL;
    }

}
